package com.legendshop.openportal.sdk.model.response.v4;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 用户信息
 */
@Data
public class UserInfoV4Response implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户ID", required = true)
    private Long userId;

    @ApiModelProperty(value = "昵称", required = false)
    private String nickName;

    @ApiModelProperty(value = "头像", required = false)
    private String avatarUrl;

    @ApiModelProperty(value = "手机号")
    private String mobile;

    @ApiModelProperty(value = "app相关信息", required = false)
    private List<AppInfo> appInfos;

    @Data
    public static class AppInfo implements Serializable {

        @ApiModelProperty(value = "微信unionId")
        private String wxUnionId;

        @ApiModelProperty("微信openId")
        private String wxOpenId;

        @ApiModelProperty("appId")
        private String appId;

        /**
         * 枚举：AppTypeEnum
         */
        @ApiModelProperty("app类型，MP：公众号，MINI：小程序")
        private String appType;
    }


}
